#ifndef NP_OPFBUILDER_H
#define NP_OPFBUILDER_H

#include <config/Structures.h>
#include <utils/XFile.h>

class OpfBuilder
{
public:
  OpfBuilder(void);

  ~OpfBuilder(void);

  void initialize();

  void addMetadata(const articleInfo::ArticleInfo& article);

  void addMainfestAndSpine(const chapterInfo::ChapterInfo& chapter);

  bool confirmOptFile(const char* filePath, const long articleid);

private:
  mover::OpfInfo m_opfInfo;

  char* m_content;

  XFile m_file;
};

#endif // NP_OPFBUILDER_H
